package com.grade.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.grade.common.annotation.Excel;
import com.grade.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 信用评分对象 g_credit_grade
 * 
 * @author grade
 * @date 2021-10-17
 */
public class CreditGrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评分ID */
    private Long id;

    /** 地区 */
    @Excel(name = "地区")
    private String city;

    /** 地区 */
    @Excel(name = "评分名称")
    private String gradeName;

    /** 考核周期类型编码 */
    @Excel(name = "考核周期类型编码")
    private String periodType;

    /** 考核周期 */
    @Excel(name = "考核周期")
    private String gradePeriod;

    /** 总分 */
    @Excel(name = "总分")
    private Double maxScore;
    /** 总分 */
    @Excel(name = "得分")
    private Double totalScore;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 诊断书备注 */
    @Excel(name = "诊断书备注")
    private String diagnoseRemark;

    private List<String> scores;
    private List<String> remarks;
    //private List<String> diagnoseRemark;

    private Integer layer;

    private Long templateId;

    private String createYear;

    private String[] citys;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setPeriodType(String periodType) 
    {
        this.periodType = periodType;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public Double getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(Double maxScore) {
        this.maxScore = maxScore;
    }

    public String getPeriodType()
    {
        return periodType;
    }
    public void setGradePeriod(String gradePeriod) 
    {
        this.gradePeriod = gradePeriod;
    }

    public String getGradePeriod() 
    {
        return gradePeriod;
    }
    public void setTotalScore(Double totalScore)
    {
        this.totalScore = totalScore;
    }

    public Double getTotalScore()
    {
        return totalScore;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<String> getScores() {
        return scores;
    }

    public void setScores(List<String> scores) {
        this.scores = scores;
    }

    public Integer getLayer() {
        return layer;
    }

    public void setLayer(Integer layer) {
        this.layer = layer;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public List<String> getRemarks() {
        return remarks;
    }

    public void setRemarks(List<String> remarks) {
        this.remarks = remarks;
    }

    public String getCreateYear() {
        return createYear;
    }

    public void setCreateYear(String createYear) {
        this.createYear = createYear;
    }

//    public List<String> getDiagnoseRemark() { return diagnoseRemark; }

//    public void setDiagnoseRemark(List<String> diagnoseRemark) { this.diagnoseRemark = diagnoseRemark; }

    public String getDiagnoseRemark() {
        return diagnoseRemark;
    }

    public void setDiagnoseRemark(String diagnoseRemark) {
        this.diagnoseRemark = diagnoseRemark;
    }

    public String[] getCitys() {
        return citys;
    }

    public void setCitys(String[] citys) {
        this.citys = citys;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("city", getCity())
            .append("periodType", getPeriodType())
            .append("gradePeriod", getGradePeriod())
            .append("totalScore", getTotalScore())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("diagnoseRemark", getDiagnoseRemark())
            .toString();
    }
}
